package com.example.userserver.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
@Data
@ApiModel(value = "LoginParams", description = "登录入参")
public class LoginParams {

    @ApiModelProperty(value = "账号", example = "5844152454", required = true)
    @NotBlank(message = "账号不能为空")
    private String account;
    @ApiModelProperty(value = "密码", example = "5844152454", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

}
